import request from '@/request/request.js';

// 日程安排列表
export const planList = (data) => {
	return request({
		url: '/customer/app/sub/plan/app/list',
		method: 'get',
		data: data
	}, false)
}

// 待办事项统计
export const getStatistics = () => {
	return request({
		url: `/customer/app/homePage/todo/items/statistics`,
		method: 'get',
	}, false)
}

// 获取日程日期标记
export const getDateMarks = (data) => {
	return request({
		url: `/customer/app/schedule/manage/getMarks`,
		method: 'get',
		data
	}, false)
}

// 获取项目列表
export const getProjectList = (data) => {
	return request({
		url: `/customer/app/project/listByLoginUser`,
		method: 'get',
		data
	})
}

// 看板图表占比
export const getOverall = (data) => {
	return request({
		url: `/customer/app/homePage/overall`,
		method: 'get',
		data
	}, false)
}

// 看板任务列表
export const getRanking = (data) => {
	return request({
		url: `/customer/app/homePage/manage/ranking`,
		method: 'get',
		data
	})
}

// 看板详情
export const getBoardDetails = (data) => {
	return request({
		url: `/customer/app/homePage/dataBoardDetails`,
		method: 'get',
		data
	})
}